package com.guigu.chenjiajun.controller;

import com.guigu.chenjiajun.service.WorkOrderReviewService;
import com.guigu.chenjiajun.vo.MManufactureVo;
import com.guigu.common.pojo.MApply;
import com.guigu.common.pojo.MManufacture;
import com.guigu.common.vo.SearchVo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
@RequestMapping("/workOrder")
public class WorkOrderReviewController {


    @Resource
    private WorkOrderReviewService workOrderReviewService;


    @RequestMapping("/queryProcedure")
    @ResponseBody
    public SearchVo<MManufacture> queryProcedure(@RequestBody SearchVo searchVo){
        return this.workOrderReviewService.queryProcedure(searchVo);
    }

    @RequestMapping("/viewAudit")
    @ResponseBody
    public MManufactureVo viewAudit(String id){
        return this.workOrderReviewService.viewAudit(id);
    }

    @RequestMapping("/DispatchingAudit")
    @ResponseBody
    public int DispatchingAudit(@RequestBody MManufacture mManufacture){
        return this.workOrderReviewService.DispatchingAudit(mManufacture);
    }

}
